package org.bigjava.travel.service;

import org.bigjava.travel.bean.ScenicSpot;

import java.util.List;

/**
 * 景点的业务逻辑层<接口>
 */

public interface ScenicSpotService {

    public long count()throws Exception;

    public long count2()throws Exception;

    public ScenicSpot findById(Integer id)throws Exception;

    public List<ScenicSpot> findList()throws Exception;

    public void save(ScenicSpot scenicSpot)throws Exception;

    public void update(ScenicSpot scenicSpot)throws Exception;

    public void deleteById(Integer id)throws Exception;

    public List<ScenicSpot> findByPage(int currentPage, int pageSize, String query)throws Exception;

    public List<ScenicSpot> findByPage(int currentPage, int pageSize)throws Exception;
}
